use ed25519::signature::{Signer,Verifier};

pub struct HelloSigner<S>
where
    S: Signer<ed25519::Signature>
    {
        pub signing_key: S
    }

impl<S> HelloSigner<S>
where
    S: Signer<ed25519::Signature>
    {
        pub fn sign(&self, person:&str) -> ed25519::Signature{
            self.signing_key.sign(format_message(person).as_bytes())
        }
    }
